//
//  myselfViewController.m
//  校园帮(用户)
//
//  Created by 吴添培 on 2017/7/31.
//  Copyright © 2017年 吴添培. All rights reserved.
//

#import "myselfViewController.h"
#import "loginViewController.h"

@interface myselfViewController ()
@property(nonatomic, strong) UIButton *button;

@end

@implementation myselfViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
    
    _button = [[UIButton alloc]init];
    _button.frame = CGRectMake(100, 100, 100, 30);
    [_button setTitle:@"hahah" forState:UIControlStateNormal];
    [_button addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:_button];
    
}

-(void)click{
    loginViewController *login = [[loginViewController alloc] init];
    [self presentViewController:login animated:YES completion:nil];
    
    NSString *urlString = [NetworkTool willConcatenationString:@"/order/create.do"];
    
    NSDictionary *params = @{@"shippingId": @"1000001",
                             };
    [[NetworkTool sharedInstance] requestWithURLString:urlString params:params method:POST callBack:^(id data, bool isSuccess) {
        NSLog(@"%@",data);
        
    }];

}

@end
